#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    ui->label->resize(1024, 1024);

    ui->label->setPixmap(QPixmap::fromImage(defaultPainter.Paint(1, 30)));
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_pushButton_clicked()
{
    ui->label->setPixmap(QPixmap::fromImage(defaultPainter.Paint(ui->textEdit->toPlainText().toInt(),ui->textEdit_2->toPlainText().toInt())));
}


void MainWindow::on_pushButton_2_clicked()
{
    ui->label->setPixmap(QPixmap::fromImage(openGLPainter.Paint(ui->textEdit->toPlainText().toInt(),ui->textEdit_2->toPlainText().toInt())));
}

void MainWindow::on_pushButton_3_clicked()
{
    ui->label->setPixmap(QPixmap::fromImage(vulkanPainter.Paint(ui->textEdit->toPlainText().toInt(),ui->textEdit_2->toPlainText().toInt())));
}

